Eclipse Platform
Pre-release 3.0

org.eclipse.jface.text
Interface ITextViewerExtension4

All Known Implementing Classes:
TextViewer

public interface ITextViewerExtension4

Extension interface for ITextViewer. Adds the following functionality:

Since:
3.0

Method Summary
 void addTextPresentationListener(ITextPresentationListener listener)
          Adds the given text presentation listener to this text viewer.
 boolean moveFocusToWidgetToken()
          Instructs the receiver to request the IWidgetTokenKeeper currently holding the widget token to take the keyboard focus.
 void removeTextPresentationListener(ITextPresentationListener listener)
          Removes the given text presentation listener from this text viewer.
 

Method Detail

moveFocusToWidgetToken

public boolean moveFocusToWidgetToken()
Instructs the receiver to request the IWidgetTokenKeeper currently holding the widget token to take the keyboard focus.

Returns:
true if there was any IWidgetTokenKeeper that was asked to take the focus, false otherwise

addTextPresentationListener

public void addTextPresentationListener(ITextPresentationListener listener)
Adds the given text presentation listener to this text viewer. This call has no effect if the listener is already registered with this text viewer.

Parameters:
listener - the text presentation listener

removeTextPresentationListener

public void removeTextPresentationListener(ITextPresentationListener listener)
Removes the given text presentation listener from this text viewer. This call has no effect if the listener is not registered with this text viewer.

Parameters:
listener - the text presentation listener

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.